import request from '@/router/axios';
import qs from 'qs';

// 数据列表-仓库
export const getListWarehouseAll = () => request({
    url: '/warehouse/v1/findAll',
    method: 'post',
})
// 添加-仓库
export const addWarehouse = (data) => request({
    url: '/warehouse/v1/insert',
    method: 'post',
    data: qs.stringify(data),
})
// 修改-仓库
export const updWarehouse = (data) => request({
    url: '/warehouse/v1/update',
    method: 'post',
    data: qs.stringify(data),
})
// 删除-仓库
export const delWarehouse = (data) => request({
    url: '/warehouse/v1/getById?id='+data,
    method: 'post',
})
